#pragma once
#include "afxwin.h"
#include "afxeditbrowsectrl.h"


// CModelAdd dialog

class CModelAdd : public CDialogEx
{
	DECLARE_DYNAMIC(CModelAdd)

public:
  CModelAdd(CWnd* pParent, CMeasureSolution& solution);
	virtual ~CModelAdd();

// Dialog Data
	enum { IDD = IDD_MODEL_ADD };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
  virtual BOOL OnInitDialog();

public:
  afx_msg void OnBnClickedCancel();
  afx_msg void OnBnClickedOk();

public:
  tstring Name(void) { return name_.GetBuffer(0); }
  int type(void) const { return type_; }

private:
  CMeasureSolution& solution_;
  CString name_;
  CComboBox wnd_type_list_;
  int type_;
};
